package com.xyd.util;

/**
 * 类描述：计算总页数工具类
 *
 * @author 张吉哲
 * @date 2021/1/11 13:49
 */
public class TotalPageUtil {

  public static Integer getTotalPage(Integer totalCount, Integer pageSize) {
    return totalCount % pageSize == 0 ? (totalCount / pageSize) : (totalCount / pageSize + 1);
  }

}
